public abstract class StartECGEvent extends EventBase {
	private PatientBase patient;
		
	public StartECGEvent(PatientBase patient) {
		this.patient = patient;
	}

	public boolean canOccur(State state) {
		if(state.isRNAvailable())
			return true;
		else
			return false;
	}


	public void execute(State s) {
		patient.setActivity(TreatmentType.ECG);
		Simulator.addEvent(new EndECGEvent(patient, Simulator.nextNormal(30, 3)));
		
	}
}
